<table style="width:100%;" cellspacing="0">
<tr>
<td>
{messages block='gcategory'} 
{if !aErrors}
    {if $sAction == 'create'}
    <table cellspacing="0" width="100%" class="forumline">
    <tr>
        <td class="row-header" colspan="2"><span><a href="{url link='admin.sections.groups'}">{language text="groups_categories"}</a> &raquo; <a href="{url link='admin.sections.groups'}#">{language text="create_group"}</a></span></td>
    </tr>
    <tr> 
        <th colspan="2"><span class="gensmall"></span></th>
    </tr>
    <tr> 
        <td class="row1">
                {language text="you_have_created_the_group_category"}: {$sName}
                <ul>
                <li><a href="{url link='public.groups'}">{language text="view_group_index"}</a></li>
                </ul>
        </td>
    </tr>
    </table>
    <br /><br />
    {elseif $sAction == 'delete'}
        {language text="you_have_deleted_group_category_id"}: {$iCategoryId}
        <ul>
        <li><a href="{url link='public.groups'}">{language text="view_group_index"}</a></li>
        </ul> <br />
    {elseif $sAction == 'update'}
        {language text="you_have_edited_the_group_category"}: {$sName}
        <ul>
        <li><a href="{url link='public.groups'}">{language text="view_group_index"}</a></li>
        </ul> <br />
    {/if}
{else}
<table cellspacing="0" width="100%" class="forumline">
<tr>
    <td class="row-header" colspan="2"><span><a href="{url link='admin.sections.groups'}">{language text="groups_categories"}</a></span></td>
</tr>
<tr>
    <td class="catBottom" colspan="2">
        <form method="post" action="{url link='admin.sections.groups' act='create'}">

        {language text="create_new_category"}: <input type="text" size="40" name="name" id="add_category_input" />
        <input type="submit" value="{language text="go"}" />
        </form>
    </td>
</tr>
<tr>
    <th style="width:80%;font-size:9pt;">
        <span>{language text="categories"}</span>
    </th><th style="width:20%;text-align:center;font-size:9pt;">

        <span>{language text="actions"}</span>
    </th>
</tr>
    {foreach from=$aList item=aItem}
    <tr>
        <td style="width:80%;font-size:9pt;" class="row1">
            <form method="post" action="{url link='admin.sections.groups'}" style="margin:0px;">
            <input type="hidden" name="act" value="update" size="30" />
            <input type="hidden" name="id" value="{$aItem.id}" size="30" />
            <input type="text" name="name" value="{language translate=$aItem.name}" size="50" />
            
            <input type="submit" value="{language text="edit"}" />
            </form>                
        </td>
        <td style="width:20%;font-size:9pt;" class="row1">
            <a class="link_action" href="{url link='admin.sections.groups' act='delete' id=$aItem.id}" onclick="return confirm('{language text="are_you_sure_that_you_really_want_t"}');">[ {language text="delete"} ]</a>
            <a class="link_action" href="{url link='admin.language.add-phrase' translate=$aItem.name|base64}">[ {language text='Mod_Language.translate'} ]</a>
        </td>
    </tr>
    {/foreach}


</table>
<br /><br />


{/if}



</td>
</tr>

</table>
<script language="javascript" type="text/javascript">
<!--
    document.getElementById('add_category_input').focus();
-->
</script>